package lambda;

import java.util.function.Supplier;

public class SupplierDemo {
    public static void main(String[] args) {
        System.out.println(getSupplier(() -> "sasdf"));

        System.out.println(getInt(() -> 120));
    }

    private static Integer getInt(Supplier<Integer> supplier) {
        return supplier.get();
    }
    private static String getSupplier(Supplier<String> supplier) {
        return supplier.get();
    }
}
